import request from "./request";
//获取导航数据
export const getBrandData = () => {
    return request.get(`/lejuClient/productCategory/findCategory/1308336521604599809`)
}

// 获取商品列表
export const getlists = (start: number | string, limit: number | string, data: {}) => {
    return request.post(`/lejuClient/product/findProductList/${start}/${limit}`, data)
}
//获取详情页数据
export const getgoodDatil = (productId: number | string) => {
    return request.get(`/lejuClient/product/productDetail/${productId}`)
}
//添加购物车
export const addCarts = (data: {}) => {
    return request.post('/lejuClient/cart/addCart', data)
}

////新增订单
export const addOrders = (data: {}) => {
    return request.post('/lejuClient/order/addPreOrder', data)
}
